home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / PROGRAMM / DB_CLIPP / 2614.ZIP / DISPLA.ZIP / KEYS.H < prev    next >
Text File  |  1990-11-30  |  5KB  |  129 lines

  1. /* keys.h */
  2.  
  3. /* key constants for d_keyin() routine.                          */
  4. /*  some of the values allow for Wordstar-like codes to work for */
  5. /*  cursor movement.  for example ctrl-x is 0x18 and it's mapped */
  6. /*  to the down arrow.                                           */
  7.  
  8. #define UP    5       /* Ctrl-e */
  9. #define DN    24      /* Ctrl-x */
  10. #define LFT   19      /* Ctrl-s */
  11. #define RGT   4       /* Ctrl-d */
  12. #define CLFT  1       /* Ctrl-a */
  13. #define CRGT  6       /* Ctrl-f */
  14. #define HOME  210
  15. #define ENND  211
  16. #define PGUP  18      /* Ctrl-r */
  17. #define PGDN  3       /* Ctrl-c */
  18. #define INS   22      /* Ctrl-v */
  19. #define DEL   7       /* Ctrl-g */
  20. #define ESC   27      /* escape */
  21. #define RET   13      /* return */
  22. #define TAB   9       /* horiz. tab */
  23. #define BKSP  8       /* backspace  */
  24. #define CTRLA 1       /* Ctrl-a */
  25. #define CTRLB 2       /* Ctrl-b */
  26. #define CTRLC 3       /* Ctrl-c */
  27. #define CTRLD 4       /* Ctrl-d */
  28. #define CTRLE 5       /* Ctrl-e */
  29. #define CTRLF 6       /* Ctrl-f */
  30. #define CTRLG 7       /* Ctrl-g */
  31. #define CTRLH 8       /* Ctrl-h */
  32. #define CTRLI 9       /* Ctrl-i */
  33. #define CTRLJ 10      /* Ctrl-j */
  34. #define CTRLK 11      /* Ctrl-k */
  35. #define CTRLL 12      /* Ctrl-l */
  36. #define CTRLM 13      /* Ctrl-m */
  37. #define CTRLN 14      /* Ctrl-n */
  38. #define CTRLO 15      /* Ctrl-o */
  39. #define CTRLP 16      /* Ctrl-p */
  40. #define CTRLQ 17      /* Ctrl-q */
  41. #define CTRLR 18      /* Ctrl-r */
  42. #define CTRLS 19      /* Ctrl-s */
  43. #define CTRLT 20      /* Ctrl-t */
  44. #define CTRLU 21      /* Ctrl-u */
  45. #define CTRLV 22      /* Ctrl-v */
  46. #define CTRLW 23      /* Ctrl-w */
  47. #define CTRLX 24      /* Ctrl-x */
  48. #define CTRLY 25      /* Ctrl-y */
  49. #define CTRLZ 26      /* Ctrl-z */
  50.  
  51. /* the following values are mapped into > 128 so that the cannot */
  52. /*  be mistaken for an actual keypress, keyin() performs all of  */
  53. /*  the mapping.                                                 */
  54.  
  55. #define F0     140
  56. #define F1     141
  57. #define F2     142
  58. #define F3     143
  59. #define F4     144
  60. #define F5     145
  61. #define F6     146
  62. #define F7     147
  63. #define F8     148
  64. #define F9     149
  65. #define AF0    150    /* alt-f0   */
  66. #define AF1    151    /* alt-f1   */
  67. #define AF2    152    /* alt-f2   */
  68. #define AF3    153    /* alt-f3   */
  69. #define AF4    154    /* alt-f4   */
  70. #define AF5    155    /* alt-f5   */
  71. #define AF6    156    /* alt-f6   */
  72. #define AF7    157    /* alt-f7   */
  73. #define AF8    158    /* alt-f8   */
  74. #define AF9    159    /* alt-f9   */
  75. #define CF1    160    /* ctrl-f1  */
  76. #define CF2    161    /* ctrl-f2  */
  77. #define CF3    162    /* ctrl-f3  */
  78. #define CF4    163    /* ctrl-f4  */
  79. #define CF5    164    /* ctrl-f5  */
  80. #define CF6    165    /* ctrl-f6  */
  81. #define CF7    166    /* ctrl-f7  */
  82. #define CF8    167    /* ctrl-f8  */
  83. #define CF9    168    /* ctrl-f9  */
  84. #define CF0    169    /* ctrl-f0  */
  85. #define CENND  170    /* ctrl-end  */
  86. #define CHOME  171    /* ctrl-home */
  87. #define CPGDN  172    /* ctrl-page up     */
  88. #define CPGUP  132    /* ctrl-page down   */
  89. #define CINS   175    /* ctrl-insert key  */
  90. #define ALT1   176    /* alt-1 not keypad */
  91. #define ALT2   177    /* alt-2  "  */
  92. #define ALT3   178    /* alt-3  "  */
  93. #define ALT4   179    /* alt-4  "  */
  94. #define ALT5   180    /* alt-5  "  */
  95. #define ALT6   181    /* alt-6  "  */
  96. #define ALT7   182    /* alt-7  "  */
  97. #define ALT8   183    /* alt-8  "  */
  98. #define ALT9   128    /* alt-9  "  */
  99. #define ALT0   129    /* alt-0  "  */
  100. #define ADASH  130    /* alt-dash  */
  101. #define AEQL   131    /* alt-equal */
  102. #define ALTA   184    /* alt-a  */
  103. #define ALTB   185    /* alt-b  */
  104. #define ALTC   186    /* alt-c  */
  105. #define ALTD   187    /* alt-d  */
  106. #define ALTE   188    /* alt-e  */
  107. #define ALTF   189    /* alt-f  */
  108. #define ALTG   190    /* alt-g  */
  109. #define ALTH   191    /* alt-h  */
  110. #define ALTI   192    /* alt-i  */
  111. #define ALTJ   193    /* alt-j  */
  112. #define ALTK   194    /* alt-k  */
  113. #define ALTL   195    /* alt-l  */
  114. #define ALTM   196    /* alt-m  */
  115. #define ALTN   197    /* alt-n  */
  116. #define ALTO   198    /* alt-o  */
  117. #define ALTP   199    /* alt-p  */
  118. #define ALTQ   200    /* alt-q  */
  119. #define ALTR   201    /* alt-r  */
  120. #define ALTS   202    /* alt-s  */
  121. #define ALTT   203    /* alt-t  */
  122. #define ALTU   204    /* alt-u  */
  123. #define ALTV   205    /* alt-v  */
  124. #define ALTW   206    /* alt-w  */
  125. #define ALTX   207    /* alt-x  */
  126. #define ALTY   208    /* alt-y  */
  127. #define ALTZ   209    /* alt-z  */
  128.  
  129.